package cn.flying.financial.common.enums;

import cn.flying.cloud.base.common.enums.BaseEnumInfo;

/**
 *  贷款用途枚举
 * @author: lvyong
 * @date: 2023年01月29日 16:48
 * @version: 1.0
 */
public enum PurposeEnum implements BaseEnumInfo {
    U01("U01", "购车"),
    U02("U02", "教育"),
    U03("U03", "旅游"),

    ;

    private String code;
    private String text;

    PurposeEnum(String code, String text) {
        this.code = code;
        this.text = text;
    }

    /**
     * 获取枚举码值
     *
     * @return
     */
    @Override
    public String getCode() {
        return this.code;
    }

    /**
     * 获取枚举描述
     *
     * @return
     */
    @Override
    public String getDesc() {
        return this.text;
    }
}
